/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*package hirt;

import java.nio.ByteBuffer;

/**
 *
 * @author zamille
 */
/*public class StateChangeAction extends Action
{
    String newState;

    public StateChangeAction(Item theActor, double start, double duration, String newState) {
        super(theActor, start, duration);
        this.newState = newState;
    }

    public StateChangeAction(Item theActor, String newState) {
        super(theActor);
        this.newState = newState;
    }

    public StateChangeAction(String newState) {
        super();
        this.newState = newState;
    }
    
    public StateChangeAction()
    {
        super();
        newState = "";
    }

    public String getNewState() {
        return newState;
    }

    //TODO do this better
    public void setNewState(String newState) {
        this.newState = newState;
    }

    /**
     * Returns a ByteBuffer representation of this Action
     * Used to send actions over the network
     * @return ByteBuffer
     */
/*    @Override
    public ByteBuffer toByte()
    {
        ByteBuffer buf = super.toByte();
        buf.put(newState.getBytes());
        return buf;
    }


}*/
